package com.conan.spring5.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version 加油！！！
 * @Description
 * @Author 谷藤新一GYC
 * @Date 2022/10/24 - 15:55
 */
@Controller
public class ViewController {

    @RequestMapping("/testThymeleafView")
    public String testThymeleafView(){
        return "success";
    }

    @RequestMapping("/testForward")
    public String testForward(){

        return "forward:testThymeleafView";
    }


    @RequestMapping("/testRedirect")
    public String testRedirect(){

        return "redirect:testThymeleafView";
    }
}
   